<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="static.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页</title>
<style>
	#loginForm input ,button{
		border-radius:7px;
		border-width:1px
	}
</style>
</head>
<body>
	<form id='loginForm'>
		<label>用户名：</label><input name='username' id='username' value='送达方式' /><br/>
		<label>密码:</label><input name='password' value='123' />
		<button onclick="saveBtn()" type="button">新增</button><button onclick="loginBtn()" type="button">登录</button>		
	</form>
	<script>
		function saveBtn(){
			$.post(
				'userController/save.do',$('#loginForm').serialize(),function (result){
					alert(result);					
				}
			);
		}
		
		function loginBtn(){
			$('#username').val('123');
		}
	</script>
</body>
</html>